package com.sh.service;


import com.sh.common.pojo.bo.PutObjectRes;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

public interface IOSSService {

    InputStream getObject(String bucketName, String prefix);

    String signUrl(String bucketName, String objectName, Integer expires);

    String signUrl(String objectName);

    String signUrl(String objectName, Integer expires);

    PutObjectRes putObject(String bucketName, String objectName, String content);

    PutObjectRes putObject(String objectName, String content);

    PutObjectRes putObject(String objectName, MultipartFile file);

    Boolean copyObject(String srcObject, String destObject);

}
